	function doShow(url, id) {
	  go(url + "/" + id);
	}
	
	function doCreate(url) {
		go(url + "/?create");
	}
	
	function doUpdate(url, id) {
		go(url + "/" + id + "?update");
	}
	
	function doSearch(url, id) {
		go(url + "/?search");
	}
	
	function doCopy(url, id) {
		go(url + "/" + id + "?copy");
	}
	
	function doDelete(url, id, confirmMessage) {
		if (window.confirm(confirmMessage)) {
			go(url + "/" + id + "?delete");
		}		
	}
	
	function go(url) {
		document.location.href = url;
	}
	
	function buildButton(text, onclick) {
		onclick = onclick.replace(/"/gi, "'");
		var b = '<button type="reset" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"';
		b += 'onclick="' + onclick + '">';
		b += '<span class="ui-button-text">' + text + '</span>';
		b += '</button>';
		return b;
	}